package com.hdax.dm.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.order.OrderLinkUser;
import com.hdax.dm.order.mappers.OrderLinkUserMapper;
import com.hdax.dm.order.service.OrderLinkUserService;
import com.hdax.dm.utils.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderLinkUserServiceImpl extends ServiceImpl<OrderLinkUserMapper, OrderLinkUser> implements OrderLinkUserService {


    @Override
    public boolean deleteByOrderNo(String orderNo) {
        UpdateWrapper<OrderLinkUser> userUpdateWrapper=new UpdateWrapper<>();
        userUpdateWrapper.eq("orderId",orderNo);
        return remove(userUpdateWrapper);
    }



}
